package com.example.dbdesign.service.impl;

import com.example.dbdesign.mapper.RolePermissionMapper;
import com.example.dbdesign.pojo.entity.RolePermission;
import com.example.dbdesign.service.RolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolePermissionServiceImpl implements RolePermissionService {
    @Autowired
    private RolePermissionMapper rolePermissionMapper;

    @Override
    public List<String> queryPermsByUserId(int id){
        return rolePermissionMapper.queryPermsByUserId(id);
    }
}
